/*  
 * @(#) ErrorFlag.java Create on 2013-10-10 下午02:18:09   
 *   
 * Copyright 2013 by xl.   
 */


package com.springdemo.basic.common;

/**
 * 错误信息
 * @author ss
 * @date   2013-10-10 下午02:50:13
 */
public class ErrorFlag {
	
	/*
	 * 操作失败
	 */
	public final static int OPR_FAIL = 0;
	/*
	 * 后台异常
	 */
	public final static int MANAGE_ERROR = -1;
	
	/* 已经存在 */
	public final static int EXIST = -2;

	/*
	 * 传入参数为空
	 */
	public final static int PARAMETER_NULL = -3;

	/*
	 * 根据id查询时 -4 对象为null
	 */
	public final static int FINDBYID_NULL = -4;

	/*
	 * session 失效
	 */
	public final static int SESSION_FAIL = -5;
	/*
	 * 没有权限
	 */
	public final static int NO_PRIVILIEGE = -6;
	
	/*
	 * 文件类型错误
	 */
	public final static int TYPE_ERROR = -8;
	
	/*
	 * 文件没有符合自己的要求
	 */
	public final static int FILE_SIZE_ERROR = -9;
    /*
         首页大图，不符合标准
     */
    public final static int HOME_SIZE_ERROR = -10;
    /*
        上传EXCEL为空
     */
    public final static int IMPORT_EXCEL_NULL = -13;
    
    /*
   	 * 文件名不能包含.
   	 */
   	public final static int FILE_NAME_ERROR = -14;



    /*
	 * sql参数中含有保留字
	 */
	public final static String SQL_KEYWORD = "nested exception is org.apache.ibatis.executor.ExecutorException: Error selecting key or setting result to parameter object. Cause: java.lang.reflect.UndeclaredThrowableException";
	
	/*
	 * sql参数中含有保留字
	 */
	public final static String SQL_KEYWORD_KEY = "-11";
	
	/*
	 * 导入excel报OfficeXmlFileException信息
	 */
	public final static String EXCEL_EXMSG = "The supplied data appears to be in the Office 2007+ XML. You are calling the part of POI that deals with OLE2 Office Documents. You need to call a different part of POI to process this data (eg XSSF instead of HSSF)";
	
	/*
	 * 导入excel报OfficeXmlFileException信息
	 */
	public final static String EXCEL_EXMSG_KEY = "-12";
	

	/**
	 * 模板总分设置错误
	 */
	public final static String EXCEL_EXAM_PAPER_SCORE = "-20";
	
	/**
	 * 模板及格分设置错误
	 */
	public final static String EXCEL_EXAM_PAPER_JGSCORE = "-21";
	
	/**
	 * 模板格式不符合要求
	 */
	public final static String EXCEL_EXAM_PAPER_TYPE = "-22";
	
	/**
	 * 各题相加总分与设置总分不等
	 */
	public final static String EXCEL_EXAM_PAPER_NOSCORE = "-23";
	
	/**
	 * 数据字典试题形式未配置
	 */
	public final static String EXCEL_EXAM_TIKU_WEIDU = "-24";
	
	
}
